<?php /*a:6:{s:67:"D:\phpstudy_pro\WWW\ThinkPHP\k2217ASK\app\home\view\user\index.html";i:1660120922;s:63:"D:\phpstudy_pro\WWW\ThinkPHP\k2217ASK\app\home\view\layout.html";i:1659685605;s:68:"D:\phpstudy_pro\WWW\ThinkPHP\k2217ASK\app\home\view\common\meta.html";i:1659584544;s:70:"D:\phpstudy_pro\WWW\ThinkPHP\k2217ASK\app\home\view\common\script.html";i:1659584105;s:70:"D:\phpstudy_pro\WWW\ThinkPHP\k2217ASK\app\home\view\common\header.html";i:1660015203;s:70:"D:\phpstudy_pro\WWW\ThinkPHP\k2217ASK\app\home\view\common\footer.html";i:1659584054;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
<title>ask论坛</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="fly,layui,前端社区">
<meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
<link rel="stylesheet" href="/static/home/res/layui/css/layui.css">
<link rel="stylesheet" href="/static/home/res/css/global.css">


    <!-- 引入js -->
    <script src="/static/home/res/layui/layui.js"></script>
<script>
    layui.cache.page = '';
    layui.cache.user = {
        username: '游客'
        , uid: -1
        , avatar: '/static/home/res/images/avatar/00.jpg'
        , experience: 83
        , sex: '男'
    };
    layui.config({
        version: "3.0.0"
        , base: '/static/home/res/mods/' //这里实际使用时，建议改成绝对路径
    }).extend({
        fly: 'index'
    }).use('fly');
</script>
</head>

<body>
    <!-- 公共头部 -->
    <div class="fly-header layui-bg-black">
    <div class="layui-container">
        <a class="fly-logo" href="<?php echo url('/'); ?>">
            <img src="/static/home/res/images/logo.png" alt="layui">
        </a>

        <?php if((app('request')->action() !== 'login' && app('request')->action() !== 'register')): ?>
        <ul class="layui-nav fly-nav-user">

            <!-- 未登入的状态 -->
            <?php if((!app('request')->cookie('LoginUser'))): ?>
            <li class="layui-nav-item">
                <a class="iconfont icon-touxiang layui-hide-xs" href="user/login.html"></a>
            </li>
            <li class="layui-nav-item">
                <a href="<?php echo url('/home/index/login'); ?>">登入</a>
            </li>
            <li class="layui-nav-item">
                <a href="<?php echo url('/home/index/register'); ?>">注册</a>
            </li>
            <?php else: ?>

            <!-- 登入后的状态 -->

            <li class="layui-nav-item">
                <a class="fly-nav-avatar" href="javascript:;">
                    <cite class="layui-hide-xs"><?php echo htmlentities($LoginUser['nickname']); ?></cite>
                    <?php if(($LoginUser['auth'] == 1)): ?>
                    <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息：<?php echo htmlentities($LoginUser['nickname']); ?>"></i>
                    <?php endif; ?>
                    <i class="layui-badge fly-badge-vip layui-hide-xs">VIP <?php echo htmlentities($LoginUser['vip']); ?></i>
                    <img
                        src="<?php echo !empty($LoginUser['avatar']) ? '/' . $LoginUser['avatar']  :  '/static/home/res/images/avatar/default.png'; ?>">
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="<?php echo url('/home/user/profile'); ?>"><i class="layui-icon">&#xe620;</i>基本资料</a></dd>
                    <dd><a href="user/message.html"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a></dd>
                    <dd><a href="/home/user"><i class="layui-icon"
                                style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a></dd>
                    <hr style="margin: 5px 0;">
                    <dd><a href="<?php echo url('home/index/logout'); ?>" style="text-align: center;">退出</a></dd>
                </dl>
            </li>
            <?php endif; ?>
        </ul>
        <?php endif; ?>
    </div>
</div>

    <!-- 输出子内容 -->
    <div class="fly-home fly-panel" style="
background-image: url(<?php echo htmlentities($LoginUser['cover']); ?>);background-repeat:no-repeat;background-size:cover">
    <img src="<?php echo !empty($User['avatar']) ? '/'.$User['avatar']  :  '/static/home/res/images/avatar/default.png'; ?>" alt="贤心">
    <?php if(($User['auth'] == 1)): ?>
    <i class="iconfont icon-renzheng" title="<?php echo htmlentities($User['nickname']); ?>"></i>
    <?php endif; ?>
    <h1>
        <?php echo htmlentities($User['nickname']); if(($User['sex'] == 1)): ?>
        <i class="iconfont icon-nan"></i>
        <?php elseif(($User['sex'] == 2)): ?>
        <i class="iconfont icon-nv"></i>
        <?php else: ?>
        <span>保密</span>
        <?php endif; ?>
        <i class="layui-badge fly-badge-vip">VIP <?php echo htmlentities($User['vip']); ?></i>
        <!--
      <span style="color:#c00;">（管理员）</span>
      <span style="color:#5FB878;">（社区之光）</span>
      <span>（该号已被封）</span>
      -->
    </h1>

    <?php if($User['auth']): ?>
    <p style="padding: 10px 0; color: #5FB878;">认证信息：<?php echo htmlentities($User['nickname']); ?></p>
    <?php else: ?>
    <p style="padding: 10px 0; color: #c00;">认证信息：未认证</p>
    <?php endif; ?>
    <p class="fly-home-info">
        <i class="iconfont icon-kiss" title="飞吻"></i><span style="color: #FF7200;"><?php echo htmlentities($User['point']); ?> 积分</span>
        <i class="iconfont icon-shijian"></i><span><?php echo htmlentities(date('Y-m-d',!is_numeric($User['createtime'])? strtotime($User['createtime']) : $User['createtime'])); ?> 加入</span>
        <i class="iconfont icon-chengshi"></i><span>
            <?php if(($User['province'])): ?>
            <?php echo htmlentities($User['region_text']); else: ?>
            保密
            <?php endif; ?>
        </span>
    </p>

    <p class="fly-home-sign">
        <?php if(($User['content'])): ?>
        (<?php echo htmlentities($User['content']); ?>)
        <?php else: ?>
        （这个人太懒了，什么都没留下）
        <?php endif; ?>
    </p>

</div>

<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title"><?php echo htmlentities($User['nickname']); ?> 最近的提问</h3>
                <ul class="jie-row">
                    <?php if(count($PostList) > 0): foreach($PostList as $item): ?>
                    <li>
                        <span class="fly-jing"><?php echo htmlentities($item['state_text']); ?></span>
                        <a href="<?php echo url('/home/post/info',['postid' => $item['id']]); ?>"
                            class="jie-title"><?php echo htmlentities($item['title']); ?></a>
                        <i><?php echo htmlentities(date('Y-m-d',!is_numeric($item['createtime'])? strtotime($item['createtime']) : $item['createtime'])); ?></i>
                        <em class="layui-hide-xs"><?php echo htmlentities($item['visit_count']); ?>阅/<?php echo htmlentities($item['comment_count']); ?>答</em>
                    </li>
                    <?php endforeach; else: ?>
                    <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i
                            style="font-size:14px;">没有发表任何求解</i></div>
                    <?php endif; ?>
                    <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div> -->
                </ul>
            </div>
        </div>

        <div class="layui-col-md6 fly-home-da">
            <div class="fly-panel">
                <h3 class="fly-panel-title">贤心 最近的回答</h3>
                <ul class="home-jieda">
                    <li>
                        <p>
                            <span>1分钟前</span>
                            在<a href="" target="_blank">tips能同时渲染多个吗?</a>中回答：
                        </p>
                        <div class="home-dacontent">
                            尝试给layer.photos加上这个属性试试：
                            <pre>
                                full: true         
                            </pre>
                            文档没有提及
                        </div>
                    </li>
                    <li>
                        <p>
                            <span>5分钟前</span>
                            在<a href="" target="_blank">在Fly社区用的是什么系统啊?</a>中回答：
                        </p>
                        <div class="home-dacontent">
                            Fly社区采用的是NodeJS。分享出来的只是前端模版
                        </div>
                    </li>

                    <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
                </ul>
            </div>
        </div>
    </div>
</div>

    <!-- 底部 -->
    <div class="fly-footer">
    <p>2017 &copy; <a href="http://www.layui.com/" target="_blank">Fly技术社区</a></p>
</div>

</body>

</html>